/*
 * $Id: CategoryProgrammeAttribute.java 3 2011-12-26 07:48:43Z forwardly@hotmail.com $
 * 
 * Copyright (c) 2001-2008 Accentrix Company Limited. All Rights Reserved.
 */
package com.lightsaber.trade.as.entity.category;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lightsaber.trade.core.entity.BaseEntity;

@Entity
@Table(name = "MHPP_CATEGORY_PROGRAMME_ATTR")
public class CategoryProgrammeAttribute extends BaseEntity {

    private static final long serialVersionUID = 6302424414000721737L;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "CATEGORY_NODE_ID", nullable = false, insertable = true)
    private CategoryLeaf categoryLeaf;

    @Column(name = "PROGRAMME_ATTRIBUTE", nullable = false, length = 100)
    private String programmeAttribute;

    @Column(name = "VALUE", length = 255)
    private String value;

    public CategoryLeaf getCategoryLeaf() {
        return categoryLeaf;
    }

    public void setCategoryLeaf(final CategoryLeaf categoryLeaf) {
        this.categoryLeaf = categoryLeaf;
    }

    public String getProgrammeAttribute() {
        return programmeAttribute;
    }

    public void setProgrammeAttribute(final String programmeAttribute) {
        this.programmeAttribute = programmeAttribute;
    }

    public String getValue() {
        return value;
    }

    public void setValue(final String value) {
        this.value = value;
    }
}
